<?php /* Smarty version 2.6.18, created on 2008-06-19 23:33:34
         compiled from admin/Websetup_rolesband_list.html */ ?>
<h1>『 <?php echo $this->_tpl_vars['title']; ?>
 』</h1>
<form action="?controller=admin_roles&action=saveband" method="POST">

<div id="allRoles">
<h1><?php echo $this->_tpl_vars['thisrole']['rolename']; ?>
 (<?php echo $this->_tpl_vars['thisrole']['description']; ?>
)<input name="role_id" type="hidden" value="<?php echo $this->_tpl_vars['thisrole']['role_id']; ?>
" />
</h1>
<h2>蓝色背景项为已有权限，修改对应权限后点击 <input type="submit" value="保存角色" /></h2>
</div>

<div id="allPermissions">
<h1>全部权限列表</h1>
<?php $_from = $this->_tpl_vars['permissionsList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['onePerGroup']):
?>
	
	<h1><?php echo $this->_tpl_vars['onePerGroup']['permission_group_name']; ?>
 (<?php echo $this->_tpl_vars['onePerGroup']['aliasname']; ?>
)</h1>
	
	<ul>
	<?php $_from = $this->_tpl_vars['onePerGroup']['permissions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['permission']):
?>
		
		<li permission_id="<?php echo $this->_tpl_vars['permission']['permission_id']; ?>
">
			<input class="ckbox" name="permissions[<?php echo $this->_tpl_vars['permission']['permission_id']; ?>
]" type="checkbox" permission_id="<?php echo $this->_tpl_vars['permission']['permission_id']; ?>
" group_id="<?php echo $this->_tpl_vars['onePerGroup']['permission_group_id']; ?>
" />
			<span permission_id="<?php echo $this->_tpl_vars['permission']['permission_id']; ?>
">
			&nbsp;&nbsp;<?php echo $this->_tpl_vars['permission']['pername']; ?>
 (<?php echo $this->_tpl_vars['onePerGroup']['aliasname']; ?>
)
			</span>
		</li>
		
	<?php endforeach; endif; unset($_from); ?>
	</ul>

<?php endforeach; endif; unset($_from); ?>
</div>
</form>